package pay.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@TableName("message")
public class MessageEntity {
    /**
     * 消息ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 是否已读，0未读，1已读
     */
    @TableField(value = "is_read")
    private Integer isRead = 0;

    /**
     * 消息类型，0系统，1俱乐部
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 绑定的订单或俱乐部申请ID或反馈ID
     */
    @TableField(value = "binding_id")
    private Integer bindingId;

    /**
     * 是否删除
     */
    @TableField(value = "del")
    private Integer del = 0;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Timestamp createTime;

    /**
     * 阅读时间
     */
    @TableField(value = "read_time")
    private Timestamp readTime;

    /**
     * 模版id
     */
    @TableField(value = "template_id")
    private Integer templateId;

    /**
     * 绑定类型
     * 0 订单
     * 1 俱乐部
     * 2 反馈
     */
    @TableField(value = "binding_type")
    private Integer bindingType;
}